package core.obj;

import javafx.util.Pair;

import java.util.Vector;

public abstract class Sort<T> {
    protected Comparable<T>[] arr;
    protected Vector<Pair<Integer,Integer>> process;

    public Sort(Comparable<T>[] arr){
        this.arr =arr;
        process=new Vector<>();
       sort();
    }

    public Comparable<T>[] getSortResult() {
        return arr;
    }

    public Vector<Pair<Integer,Integer>> getProcess() {
        return process;
    }

    public abstract void sort();
}
